 // JavaScript代码，用于控制音乐播放
 function toggleMusic() {
    var music = document.getElementById('backgroundMusic');
    var musicButton = document.querySelector('.music-button');
    if (music.paused) {
      music.play();
      musicButton.classList.remove('paused');
    } else {
      music.pause();
      musicButton.classList.add('paused');
    }
  }